package com.patternsbox.behavioral.visitor;

class ConcreteVisitor1 implements Visitor {

	public void visitConcreteElementA(Element concreteElementA) {
		System.out.println(concreteElementA.getClass().getSimpleName()
				+ " visited by " + this.getClass().getSimpleName());

	}

	public void visitConcreteElementB(Element concreteElementB) {
		System.out.println(concreteElementB.getClass().getSimpleName()
				+ " visited by " + this.getClass().getSimpleName());

	}

}
